﻿/*******************************************************************************
 * Copyright © 2016
 * 
 * Description: MVC快速开发平台  FROM http://xmwxgn.com
 *
*********************************************************************************/
using System.Data.Entity.ModelConfiguration;
using ZFine.Domain.Entity;

namespace ZFine.Mapping
{
    public class OrganizeMap : EntityTypeConfiguration<OrganizeEntity>
    {
        public OrganizeMap()
        {
            this.ToTable("Sys_Organize");
            this.HasKey(t => t.F_Id);

            Property(p => p.F_Id).HasMaxLength(50);
            Property(p => p.F_ParentId).HasMaxLength(50);
            Property(p => p.F_EnCode).HasMaxLength(50);
            Property(p => p.F_FullName).HasMaxLength(50);
            Property(p => p.F_Description).HasMaxLength(500);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_LastModifyUserId).HasMaxLength(50);
            Property(p => p.F_DeleteUserId).HasMaxLength(50);


            Property(p => p.F_ShortName).HasMaxLength(50);
            Property(p => p.F_CategoryId).HasMaxLength(50);
            Property(p => p.F_ManagerId).HasMaxLength(500);
            Property(p => p.F_TelePhone).HasMaxLength(20);
            Property(p => p.F_MobilePhone).HasMaxLength(20);
            Property(p => p.F_WeChat).HasMaxLength(50);
            Property(p => p.F_Fax).HasMaxLength(20);
            Property(p => p.F_Email).HasMaxLength(50);
            Property(p => p.F_AreaId).HasMaxLength(50);
            Property(p => p.F_Address).HasMaxLength(50);
        }
    }
}
